package com.yonyou.pmclouds.copyperson.rmiimpl;

import com.alibaba.dubbo.config.annotation.Service;
import com.yonyou.pmclouds.ApplicationConsts;
import com.yonyou.pmclouds.basecom.exception.BusinessException;
import com.yonyou.pmclouds.copyperson.entity.CopyPersonVO;
import com.yonyou.pmclouds.copyperson.mapper.CopyPersonMapper;
import com.yonyou.pmclouds.copyperson.rmiitf.ICopyPersonQuery;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

@Service(version = ApplicationConsts.APPLICATION_VERSION, interfaceClass = ICopyPersonQuery.class)
public class CopyPersonQueryImpl implements ICopyPersonQuery {

    private final CopyPersonMapper copyPersonMapper;

    @Autowired
    public CopyPersonQueryImpl(CopyPersonMapper copyPersonMapper) {
        this.copyPersonMapper = copyPersonMapper;
    }


    @Override
    public List<CopyPersonVO> queryByPkBills(List<String> pkBills) throws BusinessException {
        return copyPersonMapper.queryByPkBills(pkBills);
    }

}
